from aip import AipContentCensor

def write_shehe(text):
    # 百度云图片审核的配置信息
    APP_ID = '46455814'
    API_KEY = 'BPGT4VhlLSld5poOdDXqPHjk'
    SECRET_KEY = 'wUU5ruNb1RI9fGEcyd9uGkqmF1OCHZyb'
    # 初始化百度云图片审核客户端
    client = AipContentCensor(APP_ID, API_KEY, SECRET_KEY)

    result = client.textCensorUserDefined(text)
    return result